package com.googlecode.cannedbeans.generator.model;

import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author Kim
 */
public class Clazz {

    private Class beanClass;

    public Class getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(Class beanClass) {
        this.beanClass = beanClass;
    }
    private Set < Property > properties = new HashSet < Property >();

    public Set<Property> getProperties() {
        return properties;
    }

    public void setProperties(Set<Property> properties) {
        this.properties = properties;
    }
    
    public boolean addProperty(Property property) {
        return this.getProperties().add(property);
    }
    
    public boolean removeProperty(Property property) {
        return this.getProperties().remove(property);
    }
}
